import request from '@/untils/request'
// 查询仓库
export const warehouse = (params) => request.get('/api/warehouse/page', { params })
// 删除仓库
export const delwarehouse = (id) => request.delete(`/api/warehouse?ids[]=${id}`)
// 修改仓库
export const putwarehouse = (data) => request.put('/api/warehouse', data)
// 添加仓库
export const addwarehouse = (data) => request.post('/api/warehouse', data)
// 查询仓库得到详情
export const updatehouse = (id) => request.get(`/api/warehouse/${id}`)
